package com.sg.model.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sg.framework.common.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.Date;

/**
 * 用于在项目实施前，将不需要的数据分离
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_platform_operation_separated_data") //6-2-01平台运营分离数据表   表不存在
public class OmsPlatformOperationSeparatedData extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分离数据表主键ID
     */
    @TableId(value = "operation_separated_data_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "operationSeparatedDataId不能为空")
    private String operationSeparatedDataId;

    /**
     * 表ID
     */
    @TableField(value = "table_id")
    @Schema(description = "表ID")
    private String tableId;

    /**
     * 中文表名
     */
    @TableField(value = "table_cn_name")
    @Schema(description = "中文表名")
    private String tableCnName;

    /**
     * 英文表名
     */
    @TableField(value = "table_en_name")
    @Schema(description = "英文表名")
    private String tableEnName;

    /**
     * 设计工具加密表名
     */
    @TableField(value = "tool_table_encryption_name")
    @Schema(description = "设计工具加密表名")
    private String toolTableEncryptionName;

    /**
     * 归属空间ID
     */
    @TableField(value = "belong_space_id")
    @Schema(description = "归属空间ID")
    private String belongSpaceId;

    /**
     * 是否需要数据分离 TRUE:是 FALSE:否
     */
    @TableField(value = "is_needdata_separated")
    @Schema(description = "是否需要数据分离")
    private String isNeeddataSeparated;

    /**
     * 线上加密表名
     */
    @TableField(value = "prd_table_encryption_name")
    @Schema(description = "线上加密表名")
    private String prdTableEncryptionName;

    /**
     * 数据分离策略
     */
    @TableField(value = "data_separated_strategy")
    @Schema(description = "数据分离策略")
    private String dataSeparatedStrategy;

    /**
     * 加密表名是否一致 TRUE:是 FALSE:否
     */
    @TableField(value = "encryption_name_is_same")
    @Schema(description = "加密表名是否一致")
    private String encryptionNameIsSame;

    /**
     * 数据分离状态 HAVE_COMPLETED:已完成 INCOMPLETE:未完成
     */
    @TableField(value = "data_separated_status")
    @Schema(description = "数据分离状态")
    private String dataSeparatedStatus;

    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;

    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;

    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
